package com.leoren.run.common;

import java.security.PublicKey;

/**
 * @ClassName UrlConstants
 * @Author Leoren
 * @Date 2019/4/16 14:10
 * Description :
 * @Version v1.0
 */
public class UrlConstants {



    private static final String BASE_URL = "http://192.168.1.100:8080/run_war";
//    private static final String BASE_URL = "http://192.168.137.1:8080/wheretoplay_war";

    /*======================================================================================*/

    private static final String BASE_USER_MODEL = "/user/";

    public static final String USER_LOGIN = BASE_URL + BASE_USER_MODEL + "login.do";
    public static final String USER_LOGIN_SECRET = BASE_URL + BASE_USER_MODEL + "secret_login.do";
    public static final String USER_UPDATE_USERNAME = BASE_URL + BASE_USER_MODEL + "update_username.do";
    public static final String USER_UPDATE_PASSWORD = BASE_URL + BASE_USER_MODEL + "update_password.do";
    public static final String USER_UPDATE_EMAIL = BASE_URL + BASE_USER_MODEL + "update_email.do";
    public static final String USER_UPDATE_PHONE = BASE_URL + BASE_USER_MODEL + "update_phone.do";
    public static final String USER_LOGOUT = BASE_URL + BASE_USER_MODEL + "logout.do";


    private static final String BASE_MAP_MODEL = "/map/";

    public static final String MAP_GET_ALL_MAP = BASE_URL + BASE_MAP_MODEL + "searchAllRunMap.do";
    public static final String MAP_GET_MAP = BASE_URL + BASE_MAP_MODEL + "getRunMap.do";
    public static final String MAP_UPLOAD_RECORD = BASE_URL + BASE_MAP_MODEL + "uploadRunRecord.do";


    private static final String BASE_COMMENT_MODEL = "/comment/";

    public static final String GET_ALL_COMMENT = BASE_URL + BASE_COMMENT_MODEL + "getAllComment.do";
    public static final String PUBLISH_COMMENT = BASE_URL + BASE_COMMENT_MODEL + "publish_comment.do";
//    public static final String PUBLISH_COMMENT = "http://192.168.1.100:8080/";
    public static final String PUBLISH_COMMENT_REPLAY = BASE_URL + BASE_COMMENT_MODEL + "publish_comment_replay.do";
    public static final String CREATE_MAP = BASE_URL + BASE_MAP_MODEL + "publish_map.do";


    private static final String BASE_RECORD_MODEL = "/record/";

    public static final String GET_ALL_RECORD = BASE_URL + BASE_RECORD_MODEL + "get_all_record.do";
    public static final String PUBLISH_RECORD = BASE_URL + BASE_RECORD_MODEL + "publish_record.do";


    private static final String BASE_ANNOUNCE_MODEL = "/announce/";

    public static final String GET_ALL_ANNOUNCE = BASE_URL + BASE_ANNOUNCE_MODEL + "getAllUnReadAnnounce.do";
    public static final String READ_ANNOUNCE = BASE_URL + BASE_ANNOUNCE_MODEL + "readAnnounce.do";







}
